*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 50px;
    background: #1a1a1a;
}
.cards{
    position: relative;
    width: 300px;
    height: 400px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.cards h2 {
    position: relative;
    font-size: 6em;
    z-index: 3;
    transition: 0.5s;
    transition-delay: 0.5s;
}
.cards:hover h2{
    opacity: 0;
    transition-delay: 0s;
}
.content{
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}
.content h3 {
    font-size: 1.5em;
    color: var(--clr);
}
.content a{
    position: relative;
    padding: 10px 20px;
    background: var(--clr);
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: 0.5s;
}
.content a:hover{
    letter-spacing: 0.2em;
}

.cards .pixel-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.cards .pixel-container .pixel {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--clr);
    border: 1px solid rgba(0,0,0,0.25);
    transition: 0.5s;
}
.cards:hover .pixel-container .pixel {
    opacity: 0;
    transform: translate(var(--tx),var(--ty));
}